package com.biyeshengjiuye.controller;


import com.alibaba.fastjson.JSON;
import com.biyeshengjiuye.service.EnterpriseTypeService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/Type")
public class TypeController {
    @Resource
    private EnterpriseTypeService enterpriseTypeService;
    /**
     * 查询所有房间类型
     * @return
     */
    @RequestMapping("/findEnterpriseTypeAll")
    public String findAll(){
        return JSON.toJSONString(enterpriseTypeService.findEnterpriseTypeList(null));
    }

}
